import React from 'react';
import { Layout } from 'antd';
import { Route,Switch} from 'react-router-dom'
import Nav from './nav/slider'
import {myloadable} from '../../utils/common'
const {  Content } = Layout;
class Org extends React.Component {
    render() {
        return <Layout className='content'>
        <Nav></Nav>
        <Content>
          <Switch>
            <Route path='/org/userlist' component={myloadable(()=>import('./user/list.js'))}></Route>
            <Route path='/org/adduser' component={myloadable(()=>import('./user/add.js'))}></Route>
          </Switch>
          
        </Content>
      </Layout>
    }
}
export default Org